<?php defined('SYSPATH') OR die('No direct access allowed.'); ?>
<fieldset>
  <legend>Comments</legend>
  <ol>
    <li>
<?php foreach ($comments as $comment) { ?>
<?php 	$comment_id = $comment['id']; ?>
<?php	$comment_author	= $comment['firstname'] . ' ' . $comment['lastname']; ?>
	  <div>
	    <div class="comment_header">Added by <?php echo $comment_author; ?> on <?php echo date("l jS \of F Y \a\\t h:i:s A",$comment['date']); ?></div>
	  <div>
<?php
		switch ($comment['status'])
		{
			case 'pending':
				echo __('This post is pending');
				break;
			case 'deleted':
				echo __('This post has been deleted');
				break;
			default:
				echo $comment['content'] . PHP_EOL; 
		}
?>
	  </div>
<?php } ?>
    </li>
  </ol>
</fieldset>
